home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Utilities / Converters / Convert_MacPaint / Source / shared.subproj / RCS / ErrorInfo.h,v < prev    next >
Text File  |  1995-06-12  |  3KB  |  125 lines

  1. head     1.3;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    death:1.3; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.3
  10. date     92.03.29.12.08.40;  author death;  state Exp;
  11. branches ;
  12. next     1.2;
  13.  
  14. 1.2
  15. date     92.02.09.18.39.39;  author death;  state Exp;
  16. branches ;
  17. next     1.1;
  18.  
  19. 1.1
  20. date     92.02.09.14.01.37;  author death;  state Exp;
  21. branches ;
  22. next     ;
  23.  
  24.  
  25. desc
  26. @The implementation file for the ErrorInfo object.  See ErrorInfo.rtf for juicy details.
  27. @
  28.  
  29.  
  30. 1.3
  31. log
  32. @turns out that 2.0 wants init calls to be in the object, not the class.
  33. Changed accordingly (also moved free into class).
  34. @
  35. text
  36. @/*
  37. ====================================================================
  38. This is the interface file for the ErrorInfo class.  Full documentation for this class can be found in the ErrorInfo.rtf file.  I will not duplicate all that fine information here.
  39.     This is $Revision: 1.2 $ of this file
  40.     It was last modified by $Author: death $ on $Date: 92/02/09 18:39:39 $
  41. Note that this file was created while using the New Century Schoolbook Roman typeface.  You may find that some things line up strangely if you don't use that family.
  42. $Log:    ErrorInfo.h,v $
  43.  * Revision 1.2  92/02/09  18:39:39  death
  44.  * minor modifications, including changing someTypes.h to the new name generalTypes.h
  45.  * 
  46.  * Revision 1.1  92/02/09  14:01:37  death
  47.  * Initial revision
  48.  * 
  49. ====================================================================
  50. */
  51.  
  52. //===
  53. // Import our parent class' definition
  54. //===
  55. #import <objc/Object.h>
  56. #import "generalTypes.h"
  57.  
  58. //===
  59. // Now, define our interface.   Again, see the ErrorInfo.rtf document for general info.
  60. //===
  61.  
  62. @@interface ErrorInfo:Object
  63. {
  64.     long int    errorKind;
  65.     Cstring    errorText;
  66.     long int    errorCode;
  67. }
  68.     
  69. - (id) initErrorWithCode: (long int) code Text: (Cstring) text Kind: (long int) kind;
  70. - (id) initErrorWithCode: (long int) code Text: (Cstring) text;
  71. - free;
  72. - (long int) getErrorKind;
  73. - (Cstring) getErrorText;
  74. - (long int) getErrorCode;
  75. @@end
  76.  
  77.  
  78. //===
  79. // Now, define some constants used by the class to define the kinds of errors that may occurr
  80. //===
  81.  
  82. #define ERRKIND_NONE        0    // Do not use this kind.  Return NULL instead.
  83. #define ERRKIND_GENERAL    1
  84. #define ERRKIND_USER        2
  85. #define ERRKIND_OS            3
  86.  
  87.  
  88. @
  89.  
  90.  
  91. 1.2
  92. log
  93. @minor modifications, including changing someTypes.h to the new name generalTypes.h
  94. @
  95. text
  96. @d4 2
  97. a5 2
  98.     This is $Revision: 1.1 $ of this file
  99.     It was last modified by $Author: death $ on $Date: 92/02/09 14:01:37 $
  100. d8 3
  101. d34 3
  102. a36 3
  103. + (id) initErrorWithCode: (long int) code Text: (Cstring) text Kind: (long int) kind;
  104. + (id) initErrorWithCode: (long int) code Text: (Cstring) text;
  105. + free;
  106. @
  107.  
  108.  
  109. 1.1
  110. log
  111. @Initial revision
  112. @
  113. text
  114. @d4 2
  115. a5 2
  116.     This is $Revision$ of this file
  117.     It was last modified by $Author$ on $Date$
  118. d7 4
  119. a10 1
  120. $Log$
  121. d18 1
  122. a18 1
  123. #import "someTypes.h"
  124. @
  125.